package com.wan.receiver

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import com.wan.uitls.CommonUtils
import com.wan.uitls.QueryTextChangeListener
import com.wan.uitls.ResultRefreshDataListener

class SearchChangeTextReceiver(var listener: QueryTextChangeListener) : BroadcastReceiver() {

    override fun onReceive(context: Context?, intent: Intent?) {
        if (intent!!.action == CommonUtils.Action_Search_Change_Text) {

            listener.onQueryTextChangeListener(intent)
        }
    }
}